import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/generated/json/login_bean_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class LoginBeanEntity {
  late int userId;
  late String accessToken;
  late String refreshToken;
  late int expiresTime;
  String? nickname;

  LoginBeanEntity();

  factory LoginBeanEntity.fromJson(Map<String, dynamic> json) => $LoginBeanEntityFromJson(json);

  Map<String, dynamic> toJson() => $LoginBeanEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
